<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>02_表格独有属性</title>
    <style>
        table {
            border: 2px  blue solid;
            width: 500px;
            table-layout:auto;
            border-spacing: 0px;
            /* 合并相邻单元格边框 */
            /* border-collapse: collapse; */
            /* 不显示的前提是不能合并边框 */
            empty-cells: hide;
            caption-side: bottom;

           
        }
        td,th {
            border: 2px orange  solid;
        }
    </style>
</head>
<body>
    <table>
        <caption>人员信息</caption>
        <thead>
            <tr>
                <th>序号</th>
                <th>姓名</th>
                <th>年龄</th>
                <th>性别</th>
                <th>政治面貌</th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td>1</td>
                <td>张三</td>
                <td>18</td>
                <td></td>
                <td>党员</td>
            </tr>
            <tr>
                <td>2</td>
                <td>张四</td>
                <td>19</td>
                <td>女</td>
                <td>群众</td>
            </tr>
            <tr>
                <td>3</td>
                <td>王五</td>
                <td>20</td>
                <td>女</td>
                <td>团员</td>
            </tr>
            <tr>
                <td>4</td>
                <td>赵六</td>
                <td>21</td>
                <td>男</td>
                <td>群众</td>
            </tr>
        </tbody>
    </table>
</body>
</html>